﻿
<link href="~/Assets/css/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" />
<link href="~/Assets/css/tagmanager.css" rel="stylesheet" />
<link href="~/Assets/css/typeahead.css" rel="stylesheet" />
<script src="~/Assets/js/jquery.form.js"></script>
<script src="~/assets/js/jquery.validate.min.js"></script>
<script src="~/Assets/js/typeahead.bundle.js"></script>
<script src="~/Assets/js/flexflow-controls.js"></script>
<script src="~/Assets/js/tagmanager.js"></script>
<script src="~/Assets/js/handlebars.js"></script>

<div class="row">
    <div class="form-horizontal" role="form" id="frmNodeEditor">
        <div class="form-group">
            <label class="col-sm-3 control-label no-padding-right" for="tag">表单列:</label>
            <div class="col-sm-9">
                <input type="text" id="colName" name="colName" placeholder="列名称" class="col-xs-12 col-sm-9">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label no-padding-right" for="oper">判断符:</label>
            <div class="col-sm-9">
                <input type="text" id="oper" name="oper" placeholder=">,<,>=,<=,==,!=" class="col-xs-12 col-sm-9">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label no-padding-right" for="colVal">表单值:</label>
            <div class="col-sm-9">
                <input type="text" id="colVal" name="colVal" placeholder="表单的值" class="col-xs-12 col-sm-9">
            </div>
        </div>
    </div>
</div>
<script>
    function initForm() {
        $("#colName").val(selNode.opt.colName);
        $("#oper").val(selNode.opt.oper);
        $("#colVal").val(selNode.opt.colVal);
        $("#tag").val(selNode.opt.tag);
    }
    function saveForm() {
        selNode.opt.colName = $("#colName").val();
        selNode.opt.oper = $("#oper").val();
        selNode.opt.colVal = $("#colVal").val();
        selNode.opt.tag = $("#tag").val();
    }
    initForm();
</script>
